package vista;

import java.awt.EventQueue;

import javax.swing.JDialog;
import net.miginfocom.swing.MigLayout;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JLabel;

public class PantallaBuscarContacto extends JDialog {
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PantallaBuscarContacto dialog = new PantallaBuscarContacto();
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the dialog.
	 */
	public PantallaBuscarContacto() {
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new MigLayout("", "[][][][grow][grow]", "[][][][][][][][]"));
		
		JRadioButton rdbtnNombre = new JRadioButton("Nombre");
		getContentPane().add(rdbtnNombre, "cell 1 1");
		
		textField = new JTextField();
		getContentPane().add(textField, "flowx,cell 4 2,growx");
		textField.setColumns(10);
		
		JRadioButton rdbtnTelfono = new JRadioButton("Tel\u00E9fono");
		getContentPane().add(rdbtnTelfono, "cell 1 3");
		
		JButton btnBuscar = new JButton("Buscar");
		getContentPane().add(btnBuscar, "cell 4 2");
		
		JLabel lblResultadosDeLa = new JLabel("Resultados de la b\u00FAsqueda");
		getContentPane().add(lblResultadosDeLa, "cell 3 5");
		
		JLabel lblNombre = new JLabel("Nombre:");
		getContentPane().add(lblNombre, "cell 1 6");
		
		JLabel lblNombre_1 = new JLabel("nombre2");
		getContentPane().add(lblNombre_1, "cell 2 6");
		
		JLabel lblTelfono = new JLabel("Tel\u00E9fono");
		getContentPane().add(lblTelfono, "cell 3 6,alignx center");
		
		JLabel lblTelefono = new JLabel("telefono2");
		getContentPane().add(lblTelefono, "cell 4 6,alignx center,aligny center");
		
		JButton btnVolver = new JButton("Volver");
		getContentPane().add(btnVolver, "cell 3 7,alignx center");

	}

}
